import { Component, OnInit, Output, EventEmitter, } from '@angular/core';
import { EventEmitterService } from './event-emitter.service';

@Component({
  selector: 'app-workplace',
  templateUrl: './workplace.component.html',
  styleUrls: ['./workplace.component.less']
})
export class WorkplaceComponent implements OnInit {
  constructor(private eventEmitService: EventEmitterService) { }
  @Output() timeChange = new EventEmitter();
  ngOnInit(): void {}
  num = 0
  add(){
    this.num = this.num+1
  }
  indexChange(id: number) {    
    this.eventEmitService.myEventEmitter.emit(id);
  }
}
